package com.lewis.sync.entity;

import lombok.Data;

import java.util.List;

/**
 * 表信息对象
 *
 * @author Lewis
 */
@Data
public class TableInfo {

    private String tableName = "";// 表名
    private String keyField = "";// 主键
    private String signField = "";// 取数标志字段
    private String beforeVal = "0";// 标志字段取数前的值，用作where的条件
    private String afterVal = "1";// 取完后更新的值，用于update
    private List<ColumnInfo> columnInfoList = null;

    public TableInfo(String tableName, String keyField, String signField, String beforeVal, String afterVal, List<ColumnInfo> columnInfoList) {
        this.tableName = tableName;
        this.keyField = keyField;
        this.signField = signField;
        this.beforeVal = beforeVal;
        this.afterVal = afterVal;
        this.columnInfoList = columnInfoList;
    }
}

